from typing import Iterable, List, Union


def safe_iterable(list: Union[List[str], None]) -> Iterable[str]:
    """确保输入总是可迭代的，即使它为None"""
    return list if list is not None else []
